import { Component, Input, OnInit, Output, EventEmitter } from '@angular/core';

@Component({
  selector: 'app-group-receiving-order-list',
  templateUrl: './group-receiving-order-list.component.html',
  styleUrls: ['./group-receiving-order-list.component.less'],
})
export class GroupReceivingOrderListComponent implements OnInit {
  @Input() orderData: any = [];
  @Output() receivingOrderClick = new EventEmitter();
  endTime!: Date;
  constructor() {}
  ngOnInit(): void {}
  setEndTime(startTime: Date): Date {
    return new Date(startTime.getTime() + 24 * 3600 * 1000);
  }
  handleClick() {
    this.receivingOrderClick.emit();
  }
}
